import service from '@/utils/request';

const CameraApi = {
  // ---------------安全设备----------------
  addCamera: function (data) {
    return service.post('camera', data);
  },
  deleteCamera: function (data) {
    return service.put('camera/delete', data);
  },
  editCamera: function (data) {
    return service.put('camera', data);
  },
  listCamera: function (data) {
    return service.get('camera/page', { params: data });
  },
  getCameraInfo: function (data) {
    return service.get('camera', { params: data });
  },
  getKitToken: function (data) {
    return service.get('camera/lcy/getKitToken', { params: data });
  },
};

export default CameraApi;
